﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Zj.CourseManage.Domain.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class Enrollment
    {
        [Key]
        public int Id { get; set; }



        public int StuId { get; set; }



        public int CourseId { get; set; }



        [ForeignKey("StuId")]
        public Student Student { get; set; }



        [ForeignKey("CourseId")]
        public Course Course { get; set; }
    }
}
